<template>
  <el-config-provider :locale="zhCn">
    <router-view></router-view>
  </el-config-provider>
</template>

<script setup>
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import DuUtil from '@/utils/DuUtil'
import { useGlobal } from '@/hooks/system/useGlobal'
import { useStore } from '@/hooks/system/useStore'

//防止页面后退
history.pushState(null, null, document.URL)
window.addEventListener('popstate', function () {
  history.pushState(null, null, document.URL)
})

nextTick(() => {
  window.useStore = useStore
  window.useGlobal = useGlobal
  window.DuUtil = DuUtil
})
</script>

<style lang="scss">
@import './assets/styles/page.scss';
#app {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
</style>
